home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Orbit:SampleCode:ScriptRunner:Source:PaletteExt.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- #ifndef SOM_Samples_PaletteExt_xih
- #define SOM_Samples_PaletteExt_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- #ifndef SOM_Samples_PaletteExt_xh
- #include <PaletteExt.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define Samples_PaletteExt_MaxNoMethods 6
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if powerc
- # pragma options align=power
- #endif
- typedef struct {
- SampleCode_ScriptRunner* fOwner;
- } Samples_PaletteExtData;
- #if powerc
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef Samples_PaletteExtData* (* SOMLINK somTD_Samples_PaletteExt_DataThunk)(void*);
- #define Samples_PaletteExtGetData(somSelf) \
- (((somTD_Samples_PaletteExt_DataThunk)(Samples_PaletteExtClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fOwner (somThis->fOwner)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef Samples_PaletteExtMethodDebug
- #define Samples_PaletteExtMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _InitExtension somSelf->InitExtension
- #define _GetBase somSelf->GetBase
- #define _BaseRemoved somSelf->BaseRemoved
- #define _IsValid somSelf->IsValid
- #define _CheckValid somSelf->CheckValid
- #define _Release somSelf->Release
- #define _InitRefCntObject somSelf->InitRefCntObject
- #define _Acquire somSelf->Acquire
- #define _Release somSelf->Release
- #define _GetRefCount somSelf->GetRefCount
- #define _somUninit somSelf->somUninit
- #define _InitObject somSelf->InitObject
- #define _HasExtension somSelf->HasExtension
- #define _AcquireExtension somSelf->AcquireExtension
- #define _ReleaseExtension somSelf->ReleaseExtension
- #define _Purge somSelf->Purge
- #define _IsEqualTo somSelf->IsEqualTo
- #define _SubClassResponsibility somSelf->SubClassResponsibility
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _Show somSelf->Show
- #define _Hide somSelf->Hide
- #define _IsPaletteVisible somSelf->IsPaletteVisible
- #define _Move somSelf->Move
- #define _GetLocation somSelf->GetLocation
- #define _SetClient somSelf->SetClient
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _InitExtension somSelf->InitExtension
- #define _Acquire somSelf->Acquire
- #define _Release somSelf->Release
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: Show */
- SOM_Scope void SOMLINK PaletteExt__Show(Samples_PaletteExt *somSelf, Environment *ev);
-
- /* New Method: Hide */
- SOM_Scope void SOMLINK PaletteExt__Hide(Samples_PaletteExt *somSelf, Environment *ev);
-
- /* New Method: IsPaletteVisible */
- SOM_Scope ODBoolean SOMLINK PaletteExt__IsPaletteVisible(Samples_PaletteExt *somSelf, Environment *ev);
-
- /* New Method: Move */
- SOM_Scope ODBoolean SOMLINK PaletteExt__Move(Samples_PaletteExt *somSelf, Environment *ev,
- ODPoint* topleft);
-
- /* New Method: GetLocation */
- SOM_Scope ODPoint* SOMLINK PaletteExt__GetLocation(Samples_PaletteExt *somSelf, Environment *ev);
-
- /* New Method: SetClient */
- SOM_Scope void SOMLINK PaletteExt__SetClient(Samples_PaletteExt *somSelf, Environment *ev,
- ODPart* client);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK PaletteExt__somInit(Samples_PaletteExt *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Samples_PaletteExt_somInit)(Samples_PaletteExt *somSelf);
- inline void SOMLINK Samples_PaletteExt_parent_ODExtension_somInit(Samples_PaletteExt *somSelf)
- {
- (void) (somSelf);
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_somInit
- #ifdef parent_somInit
- #define SOMGD_pmc_parent_somInit
- #undef parent_somInit
- #else
- #define parent_somInit Samples_PaletteExt_parent_ODExtension_somInit
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODExtension_somInit
- #ifdef parent_ODExtension_somInit
- #define SOMGD_pmc_parent_ODExtension_somInit
- #undef parent_ODExtension_somInit
- #else
- #define parent_ODExtension_somInit Samples_PaletteExt_parent_ODExtension_somInit
- #endif
- #endif
- #define Samples_PaletteExt_parents_somInit(arg0) \
- (void) Samples_PaletteExt_parent_ODExtension_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK PaletteExt__somUninit(Samples_PaletteExt *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Samples_PaletteExt_somUninit)(Samples_PaletteExt *somSelf);
- inline void SOMLINK Samples_PaletteExt_parent_ODExtension_somUninit(Samples_PaletteExt *somSelf)
- {
- (void) (somSelf);
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_somUninit
- #ifdef parent_somUninit
- #define SOMGD_pmc_parent_somUninit
- #undef parent_somUninit
- #else
- #define parent_somUninit Samples_PaletteExt_parent_ODExtension_somUninit
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODExtension_somUninit
- #ifdef parent_ODExtension_somUninit
- #define SOMGD_pmc_parent_ODExtension_somUninit
- #undef parent_ODExtension_somUninit
- #else
- #define parent_ODExtension_somUninit Samples_PaletteExt_parent_ODExtension_somUninit
- #endif
- #endif
- #define Samples_PaletteExt_parents_somUninit(arg0) \
- (void) Samples_PaletteExt_parent_ODExtension_somUninit(arg0)
-
- /* Overridden method: InitExtension */
- SOM_Scope void SOMLINK PaletteExt__InitExtension(Samples_PaletteExt *somSelf, Environment *ev,
- ODObject* base);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Samples_PaletteExt_InitExtension)(Samples_PaletteExt *somSelf, Environment *ev,
- ODObject* base);
- inline void SOMLINK Samples_PaletteExt_parent_ODExtension_InitExtension(Samples_PaletteExt *somSelf, Environment *ev,
- ODObject* base)
- {
- ((somTD_xih_Samples_PaletteExt_InitExtension)
- somParentNumResolve((somClassDataStructure*)&Samples_PaletteExtClassData, 1, ODExtensionClassData.InitExtension))
- (somSelf,ev,base);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_InitExtension
- #ifdef parent_InitExtension
- #define SOMGD_pmc_parent_InitExtension
- #undef parent_InitExtension
- #else
- #define parent_InitExtension Samples_PaletteExt_parent_ODExtension_InitExtension
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODExtension_InitExtension
- #ifdef parent_ODExtension_InitExtension
- #define SOMGD_pmc_parent_ODExtension_InitExtension
- #undef parent_ODExtension_InitExtension
- #else
- #define parent_ODExtension_InitExtension Samples_PaletteExt_parent_ODExtension_InitExtension
- #endif
- #endif
- #define Samples_PaletteExt_parents_InitExtension(arg0,arg1,arg2) \
- (void) Samples_PaletteExt_parent_ODExtension_InitExtension(arg0,arg1,arg2)
-
- /* Overridden method: Acquire */
- SOM_Scope void SOMLINK PaletteExt__Acquire(Samples_PaletteExt *somSelf, Environment *ev);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Samples_PaletteExt_Acquire)(Samples_PaletteExt *somSelf, Environment *ev);
- inline void SOMLINK Samples_PaletteExt_parent_ODExtension_Acquire(Samples_PaletteExt *somSelf, Environment *ev)
- {
- ((somTD_xih_Samples_PaletteExt_Acquire)
- somParentNumResolve((somClassDataStructure*)&Samples_PaletteExtClassData, 1, ODRefCntObjectClassData.Acquire))
- (somSelf,ev);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_Acquire
- #ifdef parent_Acquire
- #define SOMGD_pmc_parent_Acquire
- #undef parent_Acquire
- #else
- #define parent_Acquire Samples_PaletteExt_parent_ODExtension_Acquire
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODExtension_Acquire
- #ifdef parent_ODExtension_Acquire
- #define SOMGD_pmc_parent_ODExtension_Acquire
- #undef parent_ODExtension_Acquire
- #else
- #define parent_ODExtension_Acquire Samples_PaletteExt_parent_ODExtension_Acquire
- #endif
- #endif
- #define Samples_PaletteExt_parents_Acquire(arg0,arg1) \
- (void) Samples_PaletteExt_parent_ODExtension_Acquire(arg0,arg1)
-
- /* Overridden method: Release */
- SOM_Scope void SOMLINK PaletteExt__Release(Samples_PaletteExt *somSelf, Environment *ev);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Samples_PaletteExt_Release)(Samples_PaletteExt *somSelf, Environment *ev);
- inline void SOMLINK Samples_PaletteExt_parent_ODExtension_Release(Samples_PaletteExt *somSelf, Environment *ev)
- {
- ((somTD_xih_Samples_PaletteExt_Release)
- somParentNumResolve((somClassDataStructure*)&Samples_PaletteExtClassData, 1, ODRefCntObjectClassData.Release))
- (somSelf,ev);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_Release
- #ifdef parent_Release
- #define SOMGD_pmc_parent_Release
- #undef parent_Release
- #else
- #define parent_Release Samples_PaletteExt_parent_ODExtension_Release
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODExtension_Release
- #ifdef parent_ODExtension_Release
- #define SOMGD_pmc_parent_ODExtension_Release
- #undef parent_ODExtension_Release
- #else
- #define parent_ODExtension_Release Samples_PaletteExt_parent_ODExtension_Release
- #endif
- #endif
- #define Samples_PaletteExt_parents_Release(arg0,arg1) \
- (void) Samples_PaletteExt_parent_ODExtension_Release(arg0,arg1)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(Samples_PaletteExt_Class_Source) || defined(SOM_Module_paletteext_Source))
-
- /*
- * -- The Samples_PaletteExt ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list Samples_PaletteExtClassData
- #endif
-
-
- /*
- * -- The Samples_PaletteExt Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK Samples_PaletteExtClassAncestors [] = {
- (somClassDataStructure*) & ODExtensionClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- (somClassDataStructure*) & ODRefCntObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The Samples_PaletteExt Override ProcPtr Implementations Table
- */
- static somMethodPtr Samples_PaletteExtOverrideProcs [] = {
- (somMethodPtr) PaletteExt__InitExtension, /* override class ODExtension */
- (somMethodPtr) PaletteExt__somInit, /* override class SOMObject */
- (somMethodPtr) PaletteExt__somUninit, /* override class SOMObject */
- (somMethodPtr) PaletteExt__Acquire, /* override class ODRefCntObject */
- (somMethodPtr) PaletteExt__Release, /* override class ODRefCntObject */
- };
-
-
- static void Samples_PaletteExtDLLD ( void ) { }
-
-
- /*
- * -- The Samples_PaletteExt Static Class Info Master Table
- */
- static somStaticClassInfo Samples_PaletteExtSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & Samples_PaletteExtClassData, /* main token table */
- Samples_PaletteExtOverrideProcs, /* override proc implemenations table */
- Samples_PaletteExtClassAncestors, /* ancestor table */
- Samples_PaletteExtDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The Samples_PaletteExt Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x06" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x03" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "Samples::PaletteExt", /* the class name */
- sizeof (Samples_PaletteExtData), /* class instance data size */
-
- /*
- * -- The Samples_PaletteExt Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The Samples_PaletteExt Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00\x00",
-
-
- /*
- * -- The Samples_PaletteExt Method Signature Info
- */
- (somSignatureInfo *)
- "\x02\x07" /* Show */
- "\x02\x07" /* Hide */
- "\x02\x00" /* IsPaletteVisible */
- "\x03\x00" /* Move */
- "\x02\x0c" /* GetLocation */
- "\x03\x07" /* SetClient */
- ,
-
-
- /*
- * -- The Samples_PaletteExt Class Method Names
- */
- "Show\0"
- "Hide\0"
- "IsPaletteVisible\0"
- "Move\0"
- "GetLocation\0"
- "SetClient\0"
- ,
-
-
- /*
- * -- The Samples_PaletteExt Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x01" /* parent ODExtension has 1 overrides */
- "\x00\x00" /* InitExtension */
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- "\x00\x02\x00\x02" /* parent ODRefCntObject has 2 overrides */
- "\x00\x01" /* Acquire */
- "\x00\x02" /* Release */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The Samples_PaletteExt ClassData Structure
- */
- struct Samples_PaletteExtClassDataStructure SOMDLINK Samples_PaletteExtClassData = {
- 0, /* zero */
- & Samples_PaletteExtSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) PaletteExt__Show, /* Show:method */
- (somMToken) PaletteExt__Hide, /* Hide:method */
- (somMToken) PaletteExt__IsPaletteVisible, /* IsPaletteVisible:method */
- (somMToken) PaletteExt__Move, /* Move:method */
- (somMToken) PaletteExt__GetLocation, /* GetLocation:method */
- (somMToken) PaletteExt__SetClient, /* SetClient:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_Samples_PaletteExt_xih */
-